<html>
<head>
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8">
	<title>Jsswing FlowLayout Demo</title>
	<link rel="stylesheet" type="text/css" href="ext2/resources/css/ext-all.css" />
	<script type="text/javascript" src="ext2/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="ext2/ext-core-debug.js"></script>	
		
	<script type="text/javascript" src="js/jsswing.js"></script>
	<script>
	Ext.BLANK_IMAGE_URL = 'ext2/resources/images/default/s.gif';
	
	jsw.ROOT_DIR='.';
	//wbsimport(wbs);
	//wbsimport(jsw.border);
	Ext.onReady(
		function(){
			var doc=jsw.BrowserDocument.getInstance();
			
			doc.add(jsw.Box.createVerticalGlue());
			
			for(var i=0;i<3;i++){
			    var p=new jsw.JPanel();
			    p.setLayout(new jsw.BoxLayout(p,jsw.BoxLayout.X_AXIS));
			    for(var j=0;j<3;j++){
				var label=new jsw.JLabel("Label "+j);
				label.setBorder(new jsw.border.LineBorder("#666666"));
				p.add(label);
			    }
			    p.setForeground("#ffffff");
			    p.setBorder(new jsw.border.ShadowBorder());
			    p.setBackgroundImg(jsw.ROOT_DIR+"/js/img/ui/tran.png");
			    doc.add(p);
			}
			
			doc.setLayout(new jsw.BoxLayout(doc,jsw.BoxLayout.Y_AXIS));
			doc.setBackgroundImg(jsw.ROOT_DIR+"/js/img/ui/wallpaper.jpg");			
			doc.setVisible(true);//set everything visible
			
			
		});
	</script>
</head>
</html>
